package com.gxa.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "考勤实体")
public class AttendanceClock {

  @ApiModelProperty(name = "id",notes = "打卡ID",dataType = "Integer",required = false)
  private Integer id;
  @ApiModelProperty(name = "type",notes = "打卡类型（上班，下班，加班，外出，请假）",dataType = "Byte",required = true)
  private Byte type;
  @ApiModelProperty(name = "userId",notes = "打卡人id（默认当前用户）",dataType = "Integer",required = false)
  private Integer userId;
  @ApiModelProperty(name = "memo",notes = "备注",dataType = "String",required = false)
  private String memo;
  @ApiModelProperty(name = "ip",notes = "ip地址",dataType = "String",required = false)
  private String ip;
  @ApiModelProperty(name = "status",notes = "打卡状态（迟到，早退，正常)",dataType = "Byte",required = false)
  private Byte status;

  @ApiModelProperty(name = "createTime",notes = "创建时间",dataType = "Timestamp",required = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp createTime;
  @ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "Timestamp",required = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp updateTime;
  @ApiModelProperty(name = "idDeleted",notes = "是否删除",dataType = "Byte",required = false)
  private Byte isDeleted;

//  @ApiModelProperty(name = "sysDepartment",notes = "打卡部门",dataType = "SysDepartment",required = false)
//  private SysDepartment sysDepartment;




}
